<template>
  <NavTab></NavTab>
  <router-view></router-view>
</template>

<script>
import NavTab from "@/components/NavTab.vue";
import { reactive, watch } from "vue";
import { useRoute } from "vue-router";
import { useStore } from "vuex";
export default {
  components: {
    NavTab,
  },
  props: {},
  computed: {
    pageLoading() {
      return useStore().getters.getPageLoading;
    },
    inPersons() {
      return useStore().getters.getInPersons;
    },
  },
  setup(props, context) {
    const route = useRoute();

    watch(
      () => route.name,
      () => {
        // do something
      }
    );

    return {};
  },
};
</script>

<style lang="less">
@import "@/styles/common.less";
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 15px;
  padding-top: 5px;
}
.p {
  color: @c-red;
  border: solid 1px @c-3;
}
.shopusers {
  font-size: 14px;
  position: absolute;
  right: 0;
}
</style>
